
package com.probiz.estore.common.model.order;

import com.probiz.estore.common.model.order.base.OrderPaymentTbl;

/**
 * Model class for OrderPayment. Add not database mapped fileds in this class.
 */
public class OrderPayment extends OrderPaymentTbl {

	public final static Short	DOCUMENT_TYPE_PAY	= Short.valueOf((short) 1); // 收款单
	public final static Short	DOCUMENT_TYPE_REFUND= Short.valueOf((short) 2); // 退款单

	public static enum FilterHqlName{SEARCH_4_PAY, SEARCH_4_REFUND};
	/**
	 * Default Empty Constructor for class OrderPayment
	 */
	public OrderPayment() {
		super();
	}

	/**
	 * 定义实体的业务名取值； orderPaymentName 必须手工完成这个部分，否则编译不通过。
	 */
	public String getOrderPaymentName() {
		if (orderPaymentId == null)
			return "";
		else
			// 返回一个指定有业务意义的属性值;
			// 如：product的VO就用product.productName
			return this.orderPaymentId.toString();
	}

	/**
	 * Default Key Fields Constructor for class OrderPayment
	 */
	public OrderPayment(Integer in_orderPaymentId) {
		super(in_orderPaymentId);
	}

}
